﻿
///<reference path="_references.js" />

function loadSlider() {
    $('#nivoslider-main').nivoSlider({
        effect: 'fade',
        animSpeed: 500,
        pauseTime: 3000,
        startSlide: 0, // Set starting Slide (0 index)
        directionNav: true, // Next & Prev navigation
        prevText: 'Prev', // Prev directionNav text
        nextText: 'Next', // Next directionNav text
        controlNav: true, // 1,2,3... navigation
        controlNavThumbs: false, // Use thumbnails for Control Nav
        pauseOnHover: true, // Stop animation while hovering
        manualAdvance: false // Force manual transitions
    });
}

function loadButtonStyles() {
    var submitBtn = $(".submit-button");
    $(".submit-button").hover(function (event) {
        submitBtn.css("background-color", "#3b7cb4");
        submitBtn.css("color", "#fff");
    }, function (event) {
        submitBtn.css("background-color", "#e6e6e6");
        submitBtn.css("color", "#333");
    });

    $("a.button").each(function (idx, item) {
        $(item).hover(function () {
            $(item).css("background-color", "#3b7cb4");
            $(item).css("color", "#fff");
        }, function () {
            $(item).css("background-color", "#e6e6e6");
            $(item).css("color", "#333");
        })
    });
}